//
//  MainTabBarController.swift
//  FengHuangNews
//
//  Created by 新宝 on 2018/12/18.
//  Copyright © 2018年 LaiShengCai. All rights reserved.
//

import UIKit

class MainTabBarController: UITabBarController {

    override func viewDidLoad() {
        super.viewDidLoad()

        self.creatViewController()
    }
    
    private func creatViewController() {
        let newsVC = NewsController()
        let videoVC = VideoController()
        newsVC.tabBarItem=UITabBarItem(title: "新闻", image: nil, tag: 0)
        videoVC.tabBarItem=UITabBarItem(title: "直播", image: nil, tag: 1)
        
        addChild(newsVC)
        addChild(videoVC)
    }

}
